import axios from 'axios'

export default {
   /**
   * 发送短信告警
   * @param  {String} phone 电话号码
   * @param  {Object} params 参数
   * @return {Promise}
   */
  sendMessage (phone, params) {
    return axios.post(
      `https://api-test.xlink.cn/xsms/v1/device_notify/${phone}`, JSON.stringify(params)
    )
  }
}
